#!/bin/bash

#cd aaa
cd /var/lib/dpkg/info
echo '处理安装软件包时提示"在处理时有错误发生"的错误'
echo '请将控制台上提示错误的包以空格分隔输入'

read -p "please type package names:" str

IFS=' ' 
packages=($str)
for x in ${packages[@]}; do
  rm -f $x*
done
